export const line1 = [
    {
        coordinate: [119.9012, 30.1789],
        timestamp: 1737135606531,
        date: "2025-01-18 01:40:06",
    },
    {
        coordinate: [119.789, 30.2345],
        timestamp: 1737140767189,
        date: "2025-01-18 03:06:07",
    },
    {
        coordinate: [119.1234, 30.0123],
        timestamp: 1737143948151,
        date: "2025-01-18 03:59:08",
    },
    {
        coordinate: [119.1234, 30.0123],
        timestamp: 1737147221344,
        date: "2025-01-18 04:53:41",
    },
    {
        coordinate: [118.8901, 30.1305],
        timestamp: 1737148776169,
        date: "2025-01-18 05:19:36",
    },
    {
        coordinate: [119.8901, 29.8456],
        timestamp: 1737158635898,
        date: "2025-01-18 08:03:55",
    },
    {
        coordinate: [119.3456, 29.9567],
        timestamp: 1737160883919,
        date: "2025-01-18 08:41:23",
    },
    {
        coordinate: [119.5678, 29.9876],
        timestamp: 1737162264043,
        date: "2025-01-18 09:04:24",
    },
    {
        coordinate: [119.2345, 30.2765],
        timestamp: 1737169874997,
        date: "2025-01-18 11:11:14",
    },
    {
        coordinate: [119.2123, 30.1234],
        timestamp: 1737185696679,
        date: "2025-01-18 15:34:56",
    },
    {
        coordinate: [118.8901, 30.1098],
        timestamp: 1737186259306,
        date: "2025-01-18 15:44:19",
    },
    {
        coordinate: [119.5678, 29.9876],
        timestamp: 1737199469110,
        date: "2025-01-18 19:24:29",
    },
    {
        coordinate: [119.5678, 29.9678],
        timestamp: 1737206285770,
        date: "2025-01-18 21:18:05",
    },
    {
        coordinate: [118.8901, 30.2345],
        timestamp: 1737215431116,
        date: "2025-01-18 23:50:31",
    },
];
function generateRandomTimestamps() {
    const startTimestamp = new Date("2025-01-18T00:00:00").getTime();
    const endTimestamp = new Date("2025-01-18T23:59:59").getTime();
    const randomTimestamps = [];

    for (let i = 0; i < 100; i++) {
        const randomTimestamp =
            Math.floor(Math.random() * (endTimestamp - startTimestamp + 1)) +
            startTimestamp;
        randomTimestamps.push(randomTimestamp);
    }

    return randomTimestamps;
}

// const timestamps = generateRandomTimestamps();

function generateRandomCoordinates() {
    // 杭州经纬度围栏范围
    const minLongitude = 118.35; // 最小经度
    const maxLongitude = 120.5; // 最大经度
    const minLatitude = 29.1833; // 最小纬度
    const maxLatitude = 30.55; // 最大纬度

    const coordinates = [];

    for (let i = 0; i < 100; i++) {
        // 生成随机经度
        const longitude =
            Math.random() * (maxLongitude - minLongitude) + minLongitude;
        // 生成随机纬度
        const latitude =
            Math.random() * (maxLatitude - minLatitude) + minLatitude;

        // 将经纬度数据添加到数组中
        coordinates.push([longitude.toFixed(6), latitude.toFixed(6)]);
    }

    return coordinates;
}

// const randomCoordinates = generateRandomCoordinates();
// console.log(randomCoordinates);
